import request from "@/utils/request";

export function listAlbums(param) {
    return request({
        url:'/admin/photos/albums',
        method:'get',
        params:param
    })
}

export function saveOrUpdateAlbum(data) {
    return request({
        url:'/admin/photos/albums',
        method:'post',
        data:data
    })
}

export function deleteAlbum(id) {
    return request({
        url:'/admin/photos/albums/'+id,
        method:'delete'
    })
}
